package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.dto.FrontTermDto;
import com.ruoyi.system.mapper.FrontTermMapper;
import com.ruoyi.system.service.IFrontTermService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @DATE : 2024/06/03 10:18
 */
@Service
public class FrontTermServiceImpl implements IFrontTermService {

    @Resource
    private FrontTermMapper mapper;

    @Override
    public AjaxResult selectFrontTerm() {
        return AjaxResult.success(mapper.selectFrontTerm());
    }

    @Override
    public AjaxResult updateFrontTerm(FrontTermDto frontTermDto) {
        return AjaxResult.success(mapper.updateFrontTerm(frontTermDto));
    }
}
